<%@ page language="java" import="java.util.*" import="java.sql.*" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<div class="modal fade" id="upadminModal<%=id%>" tabindex="-1" aria-labelledby="upModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="upModalLabel<%=id%>">修改电影</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
<%--                <%if (wenj != null){%>--%>
                <label for="img">海报:</label>
                <img src="<%=wenj != null ? wenj : img%>" width="140px">
<%--                <%}else{%>--%>
                <form method="POST" action="updata.jsp?id=<%=id%>" enctype="multipart/form-data">
                    <input TYPE="FILE" NAME="FILE1" required SIZE="30" id="img">
                    <input TYPE="SUBMIT" VALUE="开始上传">
                </form>
<%--                <%}%>--%>
                <form action="admin.jsp" method="post">
                    <div class="form-group"  style="display: none">
                        <label for="name">ID:</label>
                        <input type="text" value="<%=id%>" name="u_id" required class="form-control" id="u_id">
                    </div>
                    <div class="form-group">
                        <label for="name">电影名:</label>
                        <input type="text" value="<%=name%>" name="u_name" required class="form-control" id="name">
                    </div>
                    <div class="form-group" style="display: none">
                        <label for="wenj">海报:</label>
                        <input type="text" name="u_wenj" value="<%=wenj != null ? wenj : img%>"  class="form-control" id="wenj">
                    </div>
                    <div class="form-group">
                        <label for="number">评分:</label>
                        <input type="text" name="u_number" value="<%=number%>"  required class="form-control"
                               id="number">
                    </div>
                    <div class="form-group">
                        <label for="leix">类型:</label>
                        <input type="text" name="u_leix" value="<%=leix%>"  required class="form-control" id="leix">
                    </div>
                    <div class="form-group">
                        <label for="time">上映时间:</label>
                        <input type="datetime-local" name="u_time" value="<%=time%>"  required class="form-control"
                               id="time">
                    </div>
                    <div class="form-group">
                        <label for="piaof">票房:</label>
                        <input type="text" name="u_piaof" value="<%=piaof%>"  required class="form-control"
                               id="piaof">
                    </div>
                    <div class="form-group">
                        <label for="diqandshic">地区/时长:</label>
                        <input type="text" name="u_diqandshic" value="<%=diqandshic%>"  required class="form-control" id="diqandshic">
                    </div>
                    <div class="form-group">
                        <label for="name2">副名:</label>
                        <input type="text" name="u_name2" value="<%=name2%>"  required class="form-control"
                               id="name2">
                    </div>
                    <div class="form-group">
                        <label for="zhuyan">主演:</label>
                        <input type="text" name="u_zhuyan" value="<%=zhuyan%>"  required class="form-control"
                               id="zhuyan">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                        <button type="submit" class="btn btn-primary">确认</button>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>
<script>
    function xiugai(id) {
        console.log(id)
    }
</script>
